<template>
  <div>
    <el-card class="filter-container" shadow="never">
      <div>
        <i class="el-icon-search"/>
        <span>筛选搜索</span>
        <el-button
          style="float: right"
          type="primary"
          size="small"
          @click="handleSearch">
          查询结果
        </el-button>
        <el-button
          style="float: right;margin-right: 15px"
          size="small"
          @click="handleReset">
          重置
        </el-button>
      </div>
      <div style="margin-top: 25px">
        <slot/>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'Index',
  data() {
    return {}
  },
  methods: {
    // 查询
    handleSearch() {
      this.$emit('handleSearch', true)
    },

    // 重置
    handleReset() {
      this.$emit('handleReset', true)
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>

</style>
